var SupplierDaoo = require("../dao/supplierDao");

//录入供应商
const up = async data => await SupplierDaoo.up(data);

//供应商货品
const upS = async data => await SupplierDaoo.upS(data);

//再找供应商
const getSupplier = async () => await SupplierDaoo.getSupplier();

//再找订单
const getOrder = async () => await SupplierDaoo.getOrder();

//删除供应商
const delSupplier = async _id => await SupplierDaoo.delSupplier(_id);

//删除订单
const delOrder = async _id => await SupplierDaoo.delOrder(_id);

//修改供应商
const upSupplier = async (_id, par) => await SupplierDaoo.upSupplier(_id, par);

//修改订单
const upOrder = async (_id, par) => await SupplierDaoo.upOrder(_id, par);

module.exports = {
  up,
  getSupplier,
  delSupplier,
  upSupplier,
  upS,
  getOrder,
  delOrder,
  upOrder
};
